package com.coder.spit.dao;

import com.coder.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @BelongsProject:coder_parent
 * @BelongsPackage:com.coder.spit.dao
 * @Author:linchong
 * @CreateTime:2019-01-02 11:26
 * @Description: 根据上级id查询
 */
public interface SpitDao extends MongoRepository<Spit,String> {

    public Page<Spit> findByParentid(String parentid, Pageable pageable);



}
